sin
Sine
sin()
function returns the sine of a number.
In this case, we will calculate the sine of different values:
<?php echo ( sin ( 3 ) ) ; echo ( sin ( - 3 ) ) ; echo ( sin ( 0 ) ) ; echo ( sin ( M_PI ) ) ; echo ( sin ( M_PI_2 ) ) ?>
Try it yourself
sin ( x )
parameter | describe |
---|---|
x | Required. A number. |
sin()
returns the sine value of parameter x . The unit of parameter x is radians.